package com.github.panchitoboy.shiro.wechat.repository;

import org.springframework.stereotype.Service;
@Service
public interface AuthenticationService {
	/**
	 * 用户注册
	 * @param memberName
	 * @param phoneNumber
	 * @param genderCode
	 * @param openId
	 * @return
	 */
	public UserInfo register(String memberName, String phoneNumber, String genderCode, String openId);

	/**
	 * 通过手机号码获得用户信息
	 * @param phoneNumber
	 * @return
	 */
	public UserInfo getUserInfoByPhoneNumber(String phoneNumber);
	/**
	 * 通过和用户和openId获得用户信息
	 * @param phoneNumber
	 * @param openId
	 * @return
	 */
	public UserInfo getUserInfoByPhoneNumber(String phoneNumber, String openId);
}
